import request from "@/utils/request";
import { download, downloadOfGet } from "@/utils/request";


// 列表
export function queryResultlist(params) {
  return request({
    url: "/diagnoseRuleConfig/deviceDiagnoseConfig/queryResultlist",
    method: "get",
    params,
  });
}
// 启停
export function updateDiagnoseStatus(data) {
  return request({
    url: "/diagnoseRuleConfig/deviceDiagnoseConfig/updateDiagnoseStatus",
    method: "post",
    data,
  });
}

// 诊断规则配置 -弹窗
export function getDeviceInfoRuleList(params) {
  return request({
    url: "/device/getDeviceInfoRuleList",
    method: "get",
    params,
  });
}
// 诊断规则配置 - 导入
export function importRuleConfig(data) {
  return request({
    url: "/diagnoseRuleConfig/deviceDiagnoseConfig/importRuleConfig",
    method: "post",
    data,
  });
}

//websocket地址
export function getWsAddr() {
  return request({
    url: "/point/getWsAddr",
    method: "get",
  });
}